package com.whopxx.controller;

import com.whopxx.biz.EquipmentBizService;
import com.whopxx.domain.dto.EquipmentPageDTO;
import com.whopxx.domain.vo.BasePageVO;
import com.whopxx.domain.vo.EquipmentVO;
import com.whopxx.domain.vo.ResultVO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/equipment")
@Tag(name = "装备接口")
public class EquipmentController {
    @Resource
    private EquipmentBizService equipmentBizService;
    @GetMapping("/page")
    @Operation(summary = "装备分页查询")
    @ApiResponse(description = "装备分页查询")
    public ResultVO<BasePageVO<EquipmentVO>> page(EquipmentPageDTO dto) {
        BasePageVO<EquipmentVO> page = equipmentBizService.page(dto);
        return ResultVO.success(page);
    }
}
